package org.edu.service.impl.manage;

import java.sql.SQLException;

import org.edu.bean.Employedtaxform;
import org.edu.common.BaseDao;
import org.edu.service.manage.EmployedtaxformManageService;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.stereotype.Service;

@Service
public class EmployedtaxformManageServiceImpl extends BaseDao<Employedtaxform>
		implements EmployedtaxformManageService {

	public void update(Employedtaxform entity) {
		hibernateTemplate.update(entity);
		hibernateTemplate.flush();
//hibernateTemplate.execute(new HibernateCallback() {
//			
//			public Object doInHibernate(Session session) throws HibernateException,
//					SQLException {
//				return session.createQuery("FROM TmBankinfo o WHERE o.account=?")
//				.setParameter(0,20)
//				.uniqueResult();
//			}
//		});
	}

}
